ifndef XPKIT
XPKIT=/usr/local
endif

SRCS=\
	Main.cc Globals.cc AppEnv.cc MainApp.cc \
	Gate.cc TcpGate.cc GateProc.cc 
OBJS=$(SRCS:.cc=.o)
OUT=xpkit-daemon

CFLAGS=-I$(XPKIT)/include -O2 -Wall  -DDEBUG -g
LDFLAGS=-L$(XPKIT)/lib
LIBS=-lrt -lnsl -lpthread -lxputl++ -lxpsys++ -lxpnet++ -lxpbas++ -lxputl -lxpnet -lxpbas 

all: $(OBJS)
	$(CXX) $(LDFLAGS) -o $(OUT) $(OBJS) $(LIBS) 

clean:
	rm -rf *.o $(OUT)
.cc.o:
	$(CXX) -c $(CFLAGS) $<

